package com.tywj.lib.net.retrofit.callback

import okhttp3.ResponseBody
import retrofit2.Response

/**
 * <pre>
 *     author :June Yang
 *     time   : 2020/5/08
 *     desc   : 网络请求回调，返回数据类型为字符串
 *     version: 1.0.0
 * </pre>
 */
abstract class StringCallback : BaseCallback<String>() {

    override fun convertResponse(response: Response<ResponseBody>): String? {
        return response.body()?.string()
    }
}